assume cs:code

data segment
db 'Welcome to masm!'
db 16 dup(0)
data ends

code segment
start:  mov ax,data
        mov ds,ax
        mov si,0
        mov es,ax
        mov di,16
        mov cx,16

        cld ;将DF标志寄存器置为0,si,di正方向增加
        rep movsb ;将byte单位的字符传送转移16次

        mov ax,4c00h
        int 21h

code ends
end start
